package cn.edu.shu.wechat.core.bean;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "xml")
public class BaseMessage {
	protected String toUserName;//	开发者微信号

	protected String fromUserName;//发送方帐号（一个OpenID）
	
	protected long createTime;	//消息创建时间 （整型）
	
	protected String msgType;//消息类型	image
	
	protected long msgId;//	消息id，64位整型
	
	@XmlElement(name="ToUserName")
	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	@XmlElement(name="FromUserName")
	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}
	@XmlElement(name="CreateTime")
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	@XmlElement(name="MsgType")
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	@XmlElement(name="MsgId")
	public void setMsgId(long msgId) {
		this.msgId = msgId;
	}
	
	public String getToUserName() {
		return this.toUserName;
	}
	public String getFromUserName() {
		return fromUserName;
	}
	public long getCreateTime() {
		return createTime;
	}
	public String getMsgType() {
		return msgType;
	}
	public long getMsgId() {
		return msgId;
	}
	public BaseMessage() {
		super();
	}
	@Override
	public String toString() {
		return "BaseMessage [toUserName=" + toUserName + ", fromUserName=" + fromUserName + ", createTime=" + createTime
				+ ", msgType=" + msgType + ", msgId=" + msgId + "]";
	}
	
	

}
